Documentation > CMS Template API Library > Params > SetFieldNames(String[])

SetFieldNames

Sets the FieldNames property with the passed in strings. If the list was not empty, previously added items are cleared from the list.

public System.Void SetFieldNames(String[])

Parameters

NameDescriptionType
fieldNameList The list of field names to set. System.String[]

Code Example

C#

Sample:

            
            AssetParams aParams = new AssetParams("modified_date DESC", 20);
            aParams.SetFieldNames("headline", "label", "summary");
            
            

Connect with Crownpeak